/**
 * Copyright phonemap.com
 *
 * Licensed under the phonemap.com License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.phonemap.com/licenses/LICENSE-1.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.avatar.entity;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * The Class UserFriend.
 *
 * @author Uy Phu
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class UserFriend {
	
	/** The user friend id. */
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long userFriendId;

	/** The user id. */
	@PrimaryKey
	private Long userId;
	
	/** The friend id. */
	@PrimaryKey
	private Long friendId;
	
	/** The pending. */
	@Persistent
	private Boolean pending;
	
	/** The create date. */
	@Persistent
	private Date createDate;
	
	/**
	 * Instantiates a new user friend.
	 */
	public UserFriend() {
		
	}

	/**
	 * Instantiates a new user friend.
	 *
	 * @param userFriendId the user friend id
	 * @param userId the user id
	 * @param friendId the friend id
	 * @param pending the pending
	 * @param createDate the create date
	 */
	public UserFriend(Long userFriendId, Long userId, Long friendId, Boolean pending, Date createDate) {
		super();
		this.userFriendId = userFriendId;
		this.userId = userId;
		this.friendId = friendId;
		this.pending = pending;
		this.createDate = createDate;
	}

	/**
	 * Gets the user friend id.
	 *
	 * @return the user friend id
	 */
	public final Long getUserFriendId() {
		return this.userFriendId;
	}

	/**
	 * Sets the user friend id.
	 *
	 * @param userFriendId the new user friend id
	 */
	public final void setUserFriendId(Long userFriendId) {
		this.userFriendId = userFriendId;
	}

	/**
	 * Gets the user id.
	 *
	 * @return the user id
	 */
	public final Long getUserId() {
		return this.userId;
	}

	/**
	 * Sets the user id.
	 *
	 * @param userId the new user id
	 */
	public final void setUserId(Long userId) {
		this.userId = userId;
	}

	/**
	 * Gets the friend id.
	 *
	 * @return the friend id
	 */
	public final Long getFriendId() {
		return this.friendId;
	}

	/**
	 * Sets the friend id.
	 *
	 * @param friendId the new friend id
	 */
	public final void setFriendId(Long friendId) {
		this.friendId = friendId;
	}

	/**
	 * Gets the pending.
	 *
	 * @return the pending
	 */
	public final Boolean getPending() {
		return this.pending;
	}

	/**
	 * Sets the pending.
	 *
	 * @param pending the new pending
	 */
	public final void setPending(Boolean pending) {
		this.pending = pending;
	}

	/**
	 * Gets the creates the date.
	 *
	 * @return the creates the date
	 */
	public final Date getCreateDate() {
		return this.createDate;
	}

	/**
	 * Sets the creates the date.
	 *
	 * @param createDate the new creates the date
	 */
	public final void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
